.class Lcom/melesta/payment/inapp3/InAppSystem$1$1;
.super Ljava/lang/Object;
.source "InAppSystem.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/payment/inapp3/InAppSystem$1;->onQueryInventoryFinished(Lcom/melesta/payment/inapp3/IabResult;Lcom/melesta/payment/inapp3/Inventory;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/melesta/payment/inapp3/InAppSystem$1;

.field final synthetic val$inventory:Lcom/melesta/payment/inapp3/Inventory;


# direct methods
.method constructor <init>(Lcom/melesta/payment/inapp3/InAppSystem$1;Lcom/melesta/payment/inapp3/Inventory;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 90
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppSystem$1$1;->this$1:Lcom/melesta/payment/inapp3/InAppSystem$1;

    iput-object p2, p0, Lcom/melesta/payment/inapp3/InAppSystem$1$1;->val$inventory:Lcom/melesta/payment/inapp3/Inventory;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 94
    iget-object v3, p0, Lcom/melesta/payment/inapp3/InAppSystem$1$1;->val$inventory:Lcom/melesta/payment/inapp3/Inventory;

    invoke-virtual {v3}, Lcom/melesta/payment/inapp3/Inventory;->getAllSkuDetails()Ljava/util/Collection;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/melesta/payment/inapp3/SkuDetails;

    .line 95
    .local v0, details:Lcom/melesta/payment/inapp3/SkuDetails;
    invoke-static {}, Lcom/melesta/payment/PaymentManager;->getInstance()Lcom/melesta/payment/PaymentManager;

    move-result-object v3

    iget-object v4, p0, Lcom/melesta/payment/inapp3/InAppSystem$1$1;->this$1:Lcom/melesta/payment/inapp3/InAppSystem$1;

    iget-object v4, v4, Lcom/melesta/payment/inapp3/InAppSystem$1;->this$0:Lcom/melesta/payment/inapp3/InAppSystem;

    invoke-virtual {v4}, Lcom/melesta/payment/inapp3/InAppSystem;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0}, Lcom/melesta/payment/inapp3/SkuDetails;->getSku()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lcom/melesta/payment/PaymentManager;->getRequestNameBySku(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 96
    .local v2, name:Ljava/lang/String;
    iget-object v3, p0, Lcom/melesta/payment/inapp3/InAppSystem$1$1;->this$1:Lcom/melesta/payment/inapp3/InAppSystem$1;

    iget-object v3, v3, Lcom/melesta/payment/inapp3/InAppSystem$1;->this$0:Lcom/melesta/payment/inapp3/InAppSystem;

    #getter for: Lcom/melesta/payment/inapp3/InAppSystem;->defaultListener:Lcom/melesta/payment/interfaces/IListener;
    invoke-static {v3}, Lcom/melesta/payment/inapp3/InAppSystem;->access$000(Lcom/melesta/payment/inapp3/InAppSystem;)Lcom/melesta/payment/interfaces/IListener;

    move-result-object v3

    invoke-virtual {v0}, Lcom/melesta/payment/inapp3/SkuDetails;->getPrice()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0}, Lcom/melesta/payment/inapp3/SkuDetails;->getTitle()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v3, v2, v4, v5}, Lcom/melesta/payment/interfaces/IListener;->updateSkuDetails(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 98
    .end local v0           #details:Lcom/melesta/payment/inapp3/SkuDetails;
    .end local v2           #name:Ljava/lang/String;
    :cond_0
    return-void
.end method
